import api from '../index';
import urls from './urls';

const header = {};

export default {
    getfile(param) {
        // return出去了一个promise
        return api.get(urls.queryfile, param, null);
    },
    add(data) {
        return api.post(urls.add, data, null, null);
    },
    delete(reqMap) {
        return api.post(urls.delete, reqMap, null, null);
    },
    modify(data) {
        return api.post(urls.modify, data, null, null);
    }
};